<?php
    $user = $this->member;
?>

 <script  src="<?php  echo JS_PATH.'/jquery/validate/jquery.validate.pack.js';?>"></script>
  <script>
       

    $(document).ready(function(){

     $('#commentForm').validate({
        rules: {
            newemail: "required",
        },
        messages: {
            newemail: "Please enter your firstname"
        }
    });
});
</script>

    <div class="blockcms">
        <h3 class="pink" style="padding-bottom:10px">
            Edit Email &raquo; <?=$this->username?>
        </h3>
        <form action="" method="post" id="commentForm">
                    <table cellspacing="0" cellpadding="0" width="98%" style="float: left;">
                        <tr>
                            <td>Old Email</td>
                            <td><input readonly="true" class="input uniform" type="text" name="oldemail" id="oldemail" value="<?=htmlspecialchars($user->Email)?>" class="required" /></td>
                        </tr>
                        <tr>
                            <td>New Email</td>
                            <td><input class="input uniform" type="text" name="newemail" id="newemail" class="required" /></td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                                <input  type="submit" name="submitEditEmail" class="uniform" value="Update" />
                                <input  type="reset" class="uniform" value="Reset" />
                            </td>
                        </tr>
                        
                    </table>
		</form>
    </div>
<style>
    .input {width:190px;}
</style>